import request from '../config/request'

// 登录方法
export function login(data) {
  return request({
    url: '/auth/login/supplier',
    headers: {
      isToken: false
    },
    method: 'post',
    data: data
  })
}

export function logout() {
  return request({
    url: '/auth/logout',
    method: 'delete'
  })
}

export function getUserProfile() {
  return request({
    url: '/system/user/profile',
    method: 'get'
  })
}
